package com.game.messagebean.dubbo;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.game.message.jpb.SuperJPB;
import com.game.message.messagecode.DubboMsg;
import com.game.message.messagecode.MsgStage;
import org.springframework.stereotype.Component;

/**
 * Created by legend9999 on 2016/4/25.
 */
@Component
public class RegisteReq extends SuperJPB {
    @Protobuf(fieldType = FieldType.STRING, order = 101, required = true)
    private String loginName;
    @Protobuf(fieldType = FieldType.STRING, order = 102, required = true)
    private String password;

    public int getMsgId() {
        return MsgStage.REQ + DubboMsg.Regist;
    }

    public String getLoginName() {
        return loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
